<?php
require_once 'modelo.php';
global $tienda;

header('Content-Type: application/json; charset=utf-8');

$categorias = $tienda->getCategorias();


echo json_encode($categorias);
?>